package com.remon.quartz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 触发触发器
 *
 * @author remon
 * @create 2018-09-09 11:58
 **/
@Entity
@Table(name = "QRTZ_FIRED_TRIGGERS")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QrtzFiredTriggers {

    /**
     * 设计器名称
     */
    @Id
    @Column(name = "SCHED_NAME")
    private String schedName;
    /**
     * 实体id
     */
    @Column(name = "ENTRY_ID")
    private String entryId;
    /**
     * 触发器名称
     */
    @Column(name = "TRIGGER_NAME")
    private String triggerName;
    /**
     * 触发器组别
     */
    @Column(name = "TRIGGER_GROUP")
    private String triggerGroup;
    /**
     * 初始化名称
     */
    @Column(name = "INSTANCE_NAME")
    private String instanceName;
    /**
     * 触发时间
     */
    @Column(name = "FIRED_TIME")
    private Long firedTime;
    /**
     * 设计时间
     */
    @Column(name = "SCHED_TIME")
    private Long schedTime;
    /**
     * 优先级
     */
    @Column(name = "PRIORITY")
    private Integer priority;
    /**
     * 状态
     */
    @Column(name = "STATE")
    private String state;
    /**
     * 任务名称
     */
    @Column(name = "JOB_NAME")
    private String jobName;
    /**
     * 任务组别
     */
    @Column(name = "JOB_GROUP")
    private String jobGroup;
    /**
     * 是否并发
     */
    @Column(name = "IS_NONCONCURRENT")
    private String isNonconcurrent;

    /**
     * 请求恢复
     */
    @Column(name = "REQUESTS_RECOVERY")
    private String requestsRecovery;
}
